add extended pairs functionality