minor tweaks to parseConfig