fix identity api calls