update require for zlib
update return function for just gzip