added required package, and added check to erlang-mode