all this lua go over to C++ so the emulation development can continue