needs a unit test for the `uid` function