shifting from threading to multiprocessing