models/environment: change root from string to int