preparing output subcommand