use less memory by avoiding mkfifo commands