implements the DONTPUBLISH logic.