fixes federation upstream providers flush and destroy method