tried to create the first pipe but it segfaults. I need to debug it tomorrow.