adding lua api