modify directory hierarchy