pathToSave set to writable path