add params properly when using wildcard