hack-prototype for a microgrid simulation