create directory hierarchy