fix pipe methods