added add and remove custom message flags