added loose and strict matching rules to triggers