changed zip and unzip to use zlib