changed process pool to hold a struct, pid and ip
implementing new way of process pool