changes to production.rb according to stack overflow