added support for OutputDirectory in the modeler