workaround for multiprocessing issues