make directory hierarchy work