improve reliability of BOM lookup