updated with battery events