store config in json format
let loader use the default config on error