cleaned up env.rb