updated wf for events