update routes and tables