Hooks.prototype.pre = function(name, fn) {
  (this._pres[name] = this._pres[name] || []).push(fn);
  return this;
};