make main lua chunk run as coroutine