create rwlock for message list.
remove superflous output.