modify rootdirectory