update composer and implement IdentityInterface's method