fixing events and config.ru for heroku