add header information to output files