connect the TC and TM chain in the SCOE, fix minor bugs