bug fixes for zip files