added erlang support