- added `getPort` method