run.sh improved