is it possible that  we do not have main_runtime_  at this point?? maybe we should put DCHECK/CHECK instead?