completed battery events and persistence. code compiles but needs testing