internal search for categories is almost done (wip)