cleaned up handleMissingIdentity