added check for env.rb