use accessor to get session