remove sleeping and set timeo to 10ms