save files in different directories