more cif parsing magic