error handling in BOM