updated battery monitor