set up for heroku and s3 and fixed tmp