really  for read i would have imagined that you would not become  completed  until after the stop condition happened  i just figured that maybe write was finishing early  if it is applicable to both cases  how about at least combining it was the  if  test above  seems silly to have if a blah else barf if a blech instead of if a blah blech else barf