fixed the routes and got them working