better wait() documentation