tweaking publish script