check for timeout