start thread when waiting