modify socket client