added gzip check