stupid max-product rename again
add chain inference