adding digest for publish/unpublish