make it work with jruby