handle pairing data
added basic security support