Revert "update TPC logic in TPCMaster"

This reverts commit 2cf94fdc0aff69377570858298ded7e493915839.
Revert "Revert "update TPC logic in TPCMaster""

This reverts commit 59e12911a46b2109e6493c656906cee98f7385f3.
Revert "Revert "Revert "update TPC logic in TPCMaster"""

This reverts commit 1eee3772cd8f1ecc397c7dade32faa58e7d11d34.