switch to master/agent mode