simplify root()
CHDIR works