refine ooo.lua output