message system built with some bugs