work on multiple indices per identity.