modify the message id factory