compat with jruby