modifications for jruby