added default case cause newest haxe build throws error