making the zip saving more robust