               }]
           models = []
           err = null
-          queue = name.slugs.map (slug) => =>
+          queue = name.slugs.map (slug) => (fin) =>
             selector = {}
             selector[slug.usedAsPath] = slug.slug
             @api[slug.constructorName].one? selector, (err, model)->

                    "Unable to find model: #{nameStr} of type #{name.constructorName}"
                else
                  models.push model
                queue.fin()

          sinkrow.dash queue, =>
            @emit "modelsReady"
            cache[nameStr] = models
            callback err, models, name

globals = require 'globals'
kd      = require 'kd'
kookies = require 'kookies'
Bongo   = require '@koding/bongo-client'
broker  = require 'broker-client'
async   = require 'async'


getSessionToken = -> kookies.get 'clientId'
