Environment.by_name using resolver

Resolver is way way faster and more accurate.