updated socket client