added debugging logging output to MSD samples