 create or replace function fp.init() returns void as $$
   return (function () {
 
-    var _post,
+    var _add,
+      _get,
       _patch,
-      _delete,
-      _get;
+      _remove;
 
     // ..........................................................
     // NATIVE

                 "name": "dependents",
                 "description": "Number of dependents",
                 "type": "Number",
                 "isRequired": true,
                 "defaultValue": 0
               }
             ]
          }

    };

    /** private */
    _patch = function (obj) {
      var args = [obj.className ? obj.className.toSnakeCase() : false],
       i;

      for (i = 0; i < obj.data.length; i++) {
        switch (obj.op)
        {
        case "add":
          return _add(obj);
          break;
        case "replace":
          return _patch(obj);
          break;
        case "remove":
          return _remove(obj);
          break;
        default:
          return false;
        }
      }
    };

    /** private */
    _remove = function (obj) {
      plv8.execute("update fp.object set is_deleted = true where guid=$1;", [obj.guid]);
      
      return true;
    };

    plv8._init = true;

