changing the publish script