                         if err or not r? or r.length == 0
                             cb(err)
                         else
-                            if r?[0]?
-                                hosts = misc.keys(r[0])
+                            if r[0][0]?
+                                hosts = misc.keys(r[0][0])
                             cb()
             (cb) =>
                 dbg("hosts=#{misc.to_json(hosts)}; ensure that we have (at least) one host from each data center")

        opts = defaults opts,
            server_id : required
            cb        : required
        if not @servers[opts.server_id]?
            opts.cb("server #{opts.server_id} unknown")
            return
        s = @servers[opts.server_id]
        if not s.host?
            opts.cb("no hostname known for #{opts.server_id}")
            return

    _local_hub_address: (opts) =>
        opts = defaults opts,
            timeout : 90
            cb : required      # cb(err, {host:hostname, port:port, status:status, server_id:server_id})
        dbg = (m) -> winston.info("local_hub_address(#{@project_id}): #{m}")
        dbg()
        server_id = undefined
        port      = undefined
        status    = undefined
        attempt = (cb) =>
            dbg("attempt")
            async.series([
                (cb) =>
                    dbg("see if host running")
