updating publish script