added tool option, parameters can be passed from a dialog