fix keys license_specs, add error detection