adding a debug version of run.sh