update code from ldt
support doclua file