invert message stream