use erlang instead of ocaml