added check to see if we are root