added msm directory flag to organize the kernel