opened pipes before coping stdin/out