move table output into cli class