added check for timeout