refactored sessions routes