add support for compressing with gzip