use new API of Scope class