improve erlang-template