add scopes to links