changed remote_host, remote_port into a pair to shorten parameters