fix listmethods subcommand