add the framework of message and fix a spell bug