adding lua class gen