add main channel information at the head of the file