combine and add indirection for ui.addMessage calls from chat.js