modified run-program.