thrift based erlang app