wait events working