extracted configurator code