added support for jruby