added a need_pairing function too