save files correctly