clean up codebase and routes