check whether any of the loaded namespaces are from the private library when restoring