cleanup loadConfig