moved temp file creation to route to see if Heroku can handle temp file save