bug fixes
added sleeps