[bugfix] add hook for output mangle