uid handling