fixed bug where config values are being overwriten by last entry