debug, fix bug with params and subcommands