added ms2 c functions calls