use ClientFlag to define the client