[ update ] write_payload_msg to avoid memory copy