added gzip stuff