use configurator class to config all values