sorting out location routes and sessions