changed order of priority for config loading