seperate files to directories