switch dataflow behavior on whether or not we are in a transaction