add support for non-root scopes - issue #98
add support for non-root scopes - issue #98