add the multiprocess code for host