add battery checking script from somewhere