fixes plus a new battery checking script