playing with sleeping while waiting