make listener plugin work with multiline