have a graph optimizer, which just flattens graphs right now
merge