added error handling for missing clientsettings.json