battery storage implementation