flexible energy management