add -z option to output to stdout

Use -z only when generating a single table