set UID if not set