add scopes support