fixed sizeof(header) bug with strlen(header)