ETD datastream re-write