modify lua coroutine