various fixes towards outputting RD async messages.
now writes messages to files for dispatch, and passes test
that checks that.