m/ tree gen and inventoryies