extract index lua table to public interface