use threads to save resources
more jruby cleanup
v0.12.0