first draft of profile_tree module. only supports TChain for now