making jruby compatible