added checkroot to get better error messages