WIP: improving calibration header detection