now export and remove foreign identities too