untested rough draft
change location of write scope, expired check
change class type, caast class type
Merge branch 'master' into changeMultiScopeLifeTimes
Merge branch 'master' into changeMultiScopeLifeTimes
context switching
Merge branch 'master' into changeMultiScopeLifeTimes
working intergration test
working intergration test
add unit test
Merge pull request #611 from ORCID/changeMultiScopeLifeTimes

Change multi scope life times