fully work around 'uid must be an unsigned int' error