update to copy buffer to tmp prior to sending to output channel