changed order of reading configuration files