move files to appropriate subdirectories