full func. with motorcheck added and higher battery cut off