added support for jruby + threadsafe tilt