stronger check if no stdout for buffer mode