TS/JPM: combining stdout_replaced with stdout_replace_decorator (same for stderr)