refactor threads & processes a little - isolation on thread now