fix to use zlib