updated to routes and dtos