endpoints for find_branch and find_branches