simplify clientsocket lib