not returning end of stream error