added return host and port methods