code enhancement, action on battery charging for testing purposes