add try catch for missing config.json