upgraded to haxe3
more haxe3 fixes