implemented core code for standalone searcher