first commit for position_mag_msf code