add flag so only publish new message