get rid of ugly globals in DataFlowGraph