fix detection of time outs