added support for build options.