generate output for shell script use