updated the enricher to return a graph