Enhanced config file parsing