rebuild message.js(unfinished)