init gzip before output