fix lua support for toolkit