removed select function. explicity set blocking mode