rc-dev: rename events: match-done->match, match-fail->ematch