added gen_event template