adds prettyprinter functionality for tid and cid types