modify to use ConfigurationManager