only register the trees of mods if these mods are installed