directory structure and file renaming