api: enable trace / replay flag on messages