added battery monitor