added compression via zlib