added error checking for ca_registry