handle timeouts in read data