 
   update: (model, options) ->
     @wrapped_sync_fn 'update', model, Utils.bbCallback (err, json) =>
-      return options.error(err) if err
+      return options.error(model, err) if err
       if cache_model = @model_type.cache.get(model.id)
         Utils.updateModel(cache_model, model) if cache_model isnt model
       else

  delete: (model, options) ->
    @model_type.cache.del(model.id) # remove from the cache
    @wrapped_sync_fn 'delete', model, Utils.bbCallback (err, json) =>
      return options.error(err) if err
      options.success(json)

  ###################################


  create: (model, options) ->
    @wrapped_sync_fn 'create', model, Utils.bbCallback (err, json) =>
      return options.error(model, err) if err
      model.set({id: json.id})
      if cache_model = @model_type.cache.get(model.id)
        Utils.updateModel(cache_model, model) if cache_model isnt model
