dump outupt to output file