rename files and change directory structure