msqc engine fromC