transitions between events without race conditions