mangle a stream through esmangle