strip iostream operators, some basic cleanup