ensure anonymous scopes are added