better timeout prevention