flowbarlib changes for compatability with heroku.