add getPort signature