manage waiting