merge output files