refine lua-parser