remove scopes field from endpint struct