adding skeleton for packet encoding/decoding