adds support for wildcard queries