debugging publish script