write export files to the temporary folder