change Dir to RootDir