use session_context where appropriate