rename files and reorganize directories