add message persistence(in-memory)