output intermediate files