added ?port arg to Oauth functions