add routes and models