slightly different error handling with problems with the config file