fixed issues in loading of config file