fixed a bug where a Zlib flush() was clobbering the compressed output.
using AppendOutput => 1 instead