updated category searcher

it is generally a little bad, code-wise