allow $params in define(). work on invoke()