added scopes option