add support for gzipped responses