added waiting state and events