add plugin example for handling events only