compatible for heroku - port doesn't have to be specified in config