a few fixes. make ready to deploy to heroku