resolve provider type