realize multi clients, but still has sometrouble