use memory queue for saving message