silly mistakes
pass a list of output files to the file sending part