fixed spiked CPU time issue when msd is disabled and added extra debugging output