remove unnecessary stuff from routes