pre allocate binary header