serialize and multiprocessing