updated routes and session helper