beginning to add socket.io support