compatiable with multiprocessing module.