move functionality to a iex