environPtr can't be const when not set in c'tor