routes and clean up