add refname_match()