remove some unused env lookups