update shell script for 1.7.1