modify routes for sessions