fix heroku compatibility