make it work for jruby