move Before to env.rb
move require into env