fix read() timeouts