added watchWait funcationailityw