add some debugging hooks to transformations