multiprocessing completely overhauled; now works with logging