updated the server for socket integration