adding gzip support to outupt