add new buffer for sending header and footer to socket output file