updated publish script