haxe3 compatibility