add hook to apply custom transformer to output