added zlib compression