added code to fork processes with spoon for jruby