properly handle onsite energy