updated bin to work with heroku