minor fixes in main/msd.cpp
msd.cpp still not working /SW