added deduce stage
fixed MarkDuplicate command call