adding roles to document session state
Merge branch 'roles' into testing