add random sleep to solve dynamic dead-lock