made root check  with less overkill