improvements to the energy_meter