modified run_moses script