make jruby compatible