upgraded publi.sh