update tdt2mat to conform to new tank api