stats_utils: implemented 'legacy' format output