implemented filtering of duplicate messages, whenn listening to all messages