 **/
 
 create or replace function load_fp() returns void as $$
-/*global plv8: true, jsonpatch: true, featherbone: true, ERROR: true */
+/*global plv8: true, jsonpatch: true, featherbone: true, NOTICE: true, ERROR: true */
 /*jslint nomen: true, plusplus: true, indent: 2, sloppy: true, todo: true, maxlen: 80*/
 (function () {
 
-  var _settings = {},
-    _createView,
-    _curry,
-    _getKey,
-    _getKeys,
-    _isChildClass,
-    _patch,
-    _propagateViews,
-    _relationColumn,
-    _sanitize,
-    _insert,
-    _select,
-    _update,
-    _delete,
+  var _createView, _curry, _getKey, _getKeys, _isChildClass, _patch, _delete,
+    _propagateViews, _relationColumn, _sanitize, _insert, _select, _update,
+    _debug,
+    _settings = {},
     _types = {
       object: {type: "json", defaultValue: {}},
       array: {type: "json", defaultValue: []},

      pk;

    /* Validate */
    if (_isChildClass(klass)) {
      plv8.elog(ERROR, "Can not query directly on a child class");
    }


              value = updRec[key].id ? _getKey(updRec[key].id) : -1;

              if (value === undefined) {
                err = "Relation not found in \"" + props[key].type.relation +
                  "\" for \"" + key + "\" with id \"" + updRec[key].id + "\"";
                plv8.elog(ERROR, err);
              }
