code review comments. change haxe to erlang due to #2968.