ud - lib and some rarity checking