created a publish script