correctly set pipes to -1 in emperor mode 2