changes to agent comparator, MCKP fixes (edit 1) need to clean this
more...
updates to optimization and QA