foundry quality control