split publish script in half