implements run.sh