if only one thread do not use multiprocessing process manager