modified socket server