make header search generic