added support for options.extensions