added export of uid generator, that's important