refactor and export wildcard_matches