add extra logging with stack trace when config file exists but can't be loaded