MAKING A MICROGRID FROM LEGACY SYSTEMS