fixing #2: empty port value will not fire an exception now.