added possibility to filter events