some more multithreaded job dispatching stuff #untested #whoknowsifanyofthisworks