inject erlang api calls