lua call a c library as a model