improvement on run.sh