threads and gemfile working for jruby