connection time out and error control