added routes and some models