add gzip support for output