corrected pipe2, now before fork2. runs ok.