implementation of TPC logic in slaves