added basic rewriting of tdata.xml (in tdata2.xml)