matchamking mechanism implementation (slave/master)