replaced some sleeps with wait_until_present