add battery api