allows to filter events before to receive it