add debugging output to understand workflow behavior