fixed some things to work for heroku