add Filter::addMessages(). fixes #23 and #24, but a little differently from what @harikt suggested