add support for global option