wait_and_beep and friends