use a define for envid len