throw exception when config file is broken