FIX: if configuration file json is invalid, throw error saying so