The ports and collector flange look serviceable to me. They are scratched up but I don’t understand what you are complaining about on the flanges. Looks like there is enough surface to seal. They are welded inside the flange. What do you expect to be machined?