added scopes generation