change interface IClient and ThreadGroup function