adds the conversion code from mid to guid