only needed in jruby