detect provider for subgraphs