restructure to code so that tables are parsed individually. Should find way to reduce number of html_parent objects being passed through though