minor fixes in non-blocking reads