added error handling for reading sites.json.