fixing web publishing script