modified run.sh to be more easily configurable