implemented timestamp and message store.