use safe pipe open for test driver