energy management implementation