hope this works for jruby... concurrent programs are so hard to test