improve dump subcommand a bit