more robust way for wildcard syntax resolve