add table printing to messages