       debug "Loading #{Object.keys(cache).length} models..."
 
       Object.keys(cache).map (name) =>
-        @registerModel path.join @modelPaths[index], cache[name]
         debug 'Loading model:', name
+        @registerModels path.join @modelPaths[index], cache[name]
 
     .catch (err) =>
 

      findCode([_path]).map (codePath) =>

        Promise.try =>
          model = @registerModel codePath
          if model and not Array.isArray model
            plainPath = codePath.replace _path, ''
            cache[model] = plainPath

        .catch (err) =>
          @emit 'error', \

  defineModel: (name, model) ->

    unless model.addBongo? this
      return null

    if @models[name]
      console.warn "Model #{name} defined multiple times!"
