avoid use of zlib