add result-filtering hooks