stringstream error flags dont seem to do what they should.  work around