separate flat and relational output
-