updated run_optflow