turns out env can't be hidden in a method