wildcard matching - needs to rewrite