sug-271 `params` option can be a function