some changes regarding raise ValueError if path to config file is wrong