added message formatter to server side