support gzipped intermediate files