catching a race condition i believe