how to use uid auto replacement