deprecated settingPort and settingsOnException