__tmp1/2 are intermediate files