initial commit to add in the m3 haxe code