changed the method of configuration loading