log comp and merge docs