implement pseudo recv/send patch