restored MOAICoroutine.cpp