prevent read/write from/to stdout/stdin