-updated to Haxe 3.0