adds more logging to identity class