added support for message history