add pipe and shared memory