revamped this.sh script