adding provenance capture to prepare trigger.