removes junk from routes