added gzip support