Consistency update: -apply now takes a cmi file and -ns no longer used
The code is horrible actually, and cmis are read twice in the program