update battery stuff