fixing publish script