multiprocessing wrapped in single func