fixed bug with re-initialized variables when reading multiple config files