adjust directory hierarchy