use uid as identifier instead of nameid