writing out the file before it's uploaded, temporary change