better handling of process pipes