Update loadConfig to allow duplicates