rest the directory