further modifications on the configuration reading logic