bug fixes and heroku prod config