monkey-patching for EmailOutput plugin