moved to config.ru to support heroku