battery script seems to be working right now