adding resource to pipe