refactor to remove 'search_for_path'
small refactoring - pull out matchers into separate functions
small refactoring: remove search_local_text