allow search classes to use proc as search target