fixed more issues with production.rb and dev.rb