made some changes so that heroku behaves