better piping and pseudo test