take wildcards into account when checking arguments