run_instanceもほぼ実装