make addPreRouteHook chainable