fix indent and add run_opt