add wildcard support to trigger matching code