clean up Route code