adding deflater to middleware