start converting to haxe 3