extend c application by lua file