some fixes to processTriggeredData
minor
nothing major
cleaning up to merge