accomodate different header offsets