add header extension to erlang mode