added ground-level debug check