added gzip to middleware