made LUA script execute in main thread, but console running in another (nw)
Need to generalize mechanism of communication between threads and do more cleanup