build generate pairings functionality