correct resource added to pipe on construction