copy files to correct directories