added per-endpoint scopes