read header is functional