added ability to configure port per endpoint type