refined the directory hierarchy