plugin working with generic events