clean and fix routes