some multiprocessing fixes