move config out of build_graph, have it be passed in to inject_* methods