little adjustments on stubs and socket.io upgrade