added ground checker and alive capability