v3.0.x: added an ability to match custom messages