separate header and logs to send