move uid0 checking into uid.c