wip: generic output format