makes insertDiffReplies return opcodes