changes in check_type, htmltable, get_cells