adjusted handler for new deflate operations in the gateway to C function