updated battery logging