add flexibility to the reading of calibration files