clean before publish