implemented tabular output for cli