code: function getParamAccessor(id, params) {
    // easy access
    var paramGet = function (prop, alt, required) {
      if (arguments.length < 1) {
        throw (new Error('expected at least 1 argument'));
      }
      if (arguments.length < 2) {
        required = true;
      }
      if (params && hasOwnProp(params, prop)) {
        return params[prop];
      }
      if (required) {
        if (!params) {
          throw (new Error('no params supplied for: ' + id));
        }
        throw (new Error('missing param property: ' + prop + ' in: ' + id));
      }
      return alt;
    };
    paramGet.raw = params;
    return paramGet;
  }
docs: return a parameter accessor