fixed global config loading