env tree and sorted list is migrated to EnvironmentContainer