moved def back to env.rb and defined delivery method in env.rb too