added simple filtering on events