added routes and models