uids made optional