makes battery check generic so it works on all my laptops