expose inflate and deflate for middleware friendliness