correctly checking lua support