enhance the multiprocess handling