changes in server and client socket.io