added sleeps in critical places; all tests but one succeed