dont get stuck waiting on a random thread