added erlang stuff