updated config file loading