add table_formatter and test