implemented nsdata for messagepack