complete new version of ttt serialization.