update deprecated code to make it work with elixir 0.13