transform code to dynamically capture some provenance info.