updated API to use elixir versus core erlang