debugging getIdentity; added logging