added socket for client-server application