implemented pairing API