compatability changes to deploy to heroku