'runtimes_.find(main_runtime_) != runtimes_.end()' this should be an assertion