cleanup code associated with routes/cas