refactor
support basic HTML tables in the code XML
sanity checks