maybe fix random pipe bug.