use lodash instead of underscore
optimize original message rendering method