incomplete socket client implementation