allow more parameters to be passed to stat and optimizers