refactor formatting to use thors print_table