updates routes and models