add support for specifying global options