re-added port fallback for heroku