got a basic power meter function going