add support for non-root scopes - issue #93