frames: a few operations with relations implemented (isMatching, align)