updated search_repo, more efficient and flexible