allow writing to ostream;