put the temporary file in an appropriate place