improved dynamic loading of config files