fix postpublish scripts