support publish hook