#12 add hook_search support