added port to updateBaseUri()