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

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


    fetchName      : do ->
      cache = {}
      (nameStr, callback) ->
        debug 'fetchName called with', nameStr

        if cache[nameStr]?
          debug 'found in cache, returning'
          return callback null, cache[nameStr]

        if nameStr is (group = globals.currentGroup).slug
          debug 'currentGroup is requested, reviving'
          return callback null, [ bongoInstance.revive group ]

        @api.JName.one { name: nameStr }, (err, name) =>
          if err then return callback err
          else unless name?
