completely replace msmcommon.sh