add basic support for interactive selection of output format