changed idle around in attempt to fix nonblocking read mode