minor tweaks in functions for config files