added some fprintf in the MPCs