ensure we consume stdin fully