+debug             = (require 'debug') 'remote'
 globals           = require 'globals'
 kd                = require 'kd'
 kookies           = require 'kookies'

    fetchName      : do ->
      cache = {}
      (nameStr, callback) ->
        if cache[nameStr]?
          return callback null, cache[nameStr], name
        @api.JName.one { name: nameStr }, (err, name) =>
          if err then return callback err
          else unless name?

          async.parallel queue, =>
            @emit 'modelsReady'
            cache[nameStr] = models
            debug 'models ready', err, models, name
            callback err, models, name
    mq: null

