modify directory tree