copying over updated similarity plugin