hack to make kcd work with jruby