added feature to set global options.