migrate to haxe3