message history (prototype, ugly, needs work)