solving issue with instantiation on class searcher