changed processPipe
redid forking