improve output subcommand