switch to configuration object.