use consistent buffer size for pipe