setnx before publish