adding back haxe2 compatibility