update routing and server chat code