added hook to avoid search