the ? after $hostAndPort is unnecessary